<template>
  <div id="app">
    <!-- <keep-alive include="home">
      <router-view />
    </keep-alive> -->
    <!--
      准备两个出口
      被keepAlive包裹的出口 当前组件的 路由信息 meta.keepAlive为true显示
      另一个消失
     -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"/>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"/>
  </div>
</template>
